<div class="dialog">
  <em class="btn btn-close" (click)="doClose()">X</em>
  <div class="invite-qrcode">
    <p>备注：邀请码</p>
  </div>
  <p class="title">请输入注册信息</p>
  <form class="form" #f="ngForm" (ngSubmit)="doSubmit(f)" >
    <dl>
      <dt>邀请码：</dt>
      <dd>
        <input type="text" name="invite" placeholder="请扫描二维码获取邀请码" [(ngModel)]="model.invite">
      </dd>
    </dl>

    <dl>
      <dt>手机号：</dt>
      <dd><input type="text" name="phone" placeholder="请输入手机号" [(ngModel)]="model.phone"></dd>
    </dl>

    <dl>
      <dt>密码：</dt>
      <dd><input type="password" name="password" placeholder="请输入密码" [(ngModel)]="model.password"></dd>
    </dl>

    <dl>
      <dt>角色：</dt>
      <dd>
        <label for="userType1">
          　　<input id="userType1" type="radio" name="userType" value="Member" [(ngModel)]="model.userType" ng-checked="1"> 学员
        </label>
        <label for="userType2">
          　　<input id="userType2" type="radio" name="userType" value="Teacher" [(ngModel)]="model.userType"> 教师
        </label>
      </dd>
    </dl>
    <dl>
      <dt></dt>
      <dd>
        <div class="msg">
          <div class="tips" *ngIf="msg">
            {{msg}}
          </div>
        </div>
      </dd>
    </dl>
    <dl>
      <dt></dt>
      <dd>
        <input class="btn" type="submit" value="注册">
      </dd>
    </dl>

  </form>
</div>
